* {
    margin: 0;
    padding: 0;
}

@-webkit-keyframes background_move {
    0% {
        background-position: 0 100%;
    }
    100% {
        background-position: 0 0;
    }
}

@-webkit-keyframes reset {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.3;
    }
}

body {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-image: url(../img/space/Background/starBackground.png);
    background-size: 127px auto;
    -webkit-user-select: none;
}

body.start {
    -webkit-animation: background_move 4s linear infinite;
}

.ship {
    width: 50px;
    height: 37px;
    background-image: url(../img/space/player.png);
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    position: absolute;
}

.ship.left {
    background-image: url(../img/space/playerLeft.png);
    -webkit-transition: left 600ms ease-out;
}
.ship.right {
    background-image: url(../img/space/playerRight.png);
    -webkit-transition: left     600ms ease-out;
}
.ship.damaged {
    opacity: 0;
    background-image: url(../img/space/playerDamaged.png);
    -webkit-transition: opacity 500ms linear;
    -webkit-transition-delay: 600ms;
}

.ship.reset {
    -webkit-animation: reset 300ms linear 10;
}

.ship.reset:before {
    content: "";
    position: absolute;
    background-image: url(../img/space/shield.png);
    background-size: 100% auto;
    width: 75px;
    height: 59px;
    top: -18px;
    left: -12px;
}

.enemy {
    position: absolute;
    width: 49px;
    height: 25px;
    background-image: url(../img/space/enemyShip.png);
    background-size: 100% auto;
}

.enemy.move {
    -webkit-transition: top 6s linear;
}

.bullet {
    width: 6px;
    height: 22px;
    background-image: url(../img/space/laserGreen.png);
    background-size: 100% auto;
    position: absolute;
}

.bullet.red {
    background-image: url(../img/space/laserRed.png);
}

.bullet.shot {
    opacity: 0;
    -webkit-transition: opacity 500ms linear;
    -webkit-transition-delay: 600ms;
}

.bullet.shot:before {
    content: "";
    display: block;
    width: 28px;
    height: 26px;
    background-image: url(../img/space/laserGreenShot.png);
    background-size: 100% auto;
    position: absolute;
    top: -10px;
    left: -11px;
}

.bullet.red.shot:before {
    display: none;
}

.bullet.red.shot:after {
    content: "";
    display: block;
    width: 28px;
    height: 26px;
    background-image: url(../img/space/laserRedShot.png);
    background-size: 100% auto;
    position: absolute;
    bottom: -10px;
    left: -11px;
}

.bullet.fly:not(.red) {
    top: -80px !important;
    -webkit-transition: top 2s linear;
}

.bullet.fly.red {
    top: 700px !important;
    -webkit-transition: top 2s linear;
}

.lifes {
    display: -webkit-box;
    margin: 10px;
    -webkit-box-orient: horizontal;
}

.lifes div {
    display: -webkit-box;
    width: 16px;
    height: 13px;
    margin: 0 3px;
    background-image: url(../img/space/life.png);
    background-size: auto 100%;
}

.lifes div.remove {
    opacity: 0;
    -webkit-transition: opacity 500ms linear;
    -webkit-transition-delay: 200ms;
}